#include "irc_filter_manager.h"


irc_filter_manager::irc_filter_manager(void)
{
	head = new irc_empty_filter();
	tail = head;
}

irc_filter_manager::~irc_filter_manager(void)
{
	delete head;
	head = 0;
	tail = 0;
}

void irc_filter_manager::process( const char *line )
{
	irc_line *l = parser.parse( line );

	head->process( l );
}

irc_base_filter *irc_filter_manager::chain( irc_base_filter *filter )
{
	tail = tail->chain( filter );

	return tail;
}
